Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Display a directory separator adapted to the OS Symfony is running on #991

Closed
wants to merge 3 commits into from
Closed

Conversation

alsciende
Copy link
Contributor

@alsciende alsciende commented Sep 1, 2016

On Windows, the current Symfony installer displays

Your application is now ready. You can start working on it at:

and a path followed by /, even though the path itself (returned by realpath) is separated by \. It is inelegant et potentially confusing.

This PR tries to fix that.

@alsciende alsciende changed the title Display a directory separator adapted to the OS Symfony is runniing o Display a directory separator adapted to the OS Symfony is running on Sep 1, 2016
'base_dir' => realpath($this->getParameter('kernel.root_dir').'/..'),
]);
return $this->render('default/index.html.twig', array(
'base_dir' => realpath($this->getParameter('kernel.root_dir').'/..').DIRECTORY_SEPARATOR,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But why you missing directory separator in '/..'?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is parsed by realpath, which returns only \ on Windows.

@jakzal
Copy link

jakzal commented Sep 5, 2016

👍

@alsciende
Copy link
Contributor Author

Is this PR ignored because of the failing check?

@bocharsky-bw
Copy link
Contributor

bocharsky-bw commented Sep 5, 2016

@alsciende No, merging just takes some time. And because other developers could be able to give their opinion (pros and cons) about these changes as well.

@fabpot
Copy link
Member

fabpot commented Sep 6, 2016

Thank you @alsciende.

fabpot added a commit that referenced this pull request Sep 6, 2016
… running on (Alsciende)

This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #991).

Discussion
----------

Display a directory separator adapted to the OS Symfony is running on

On Windows, the current Symfony installer displays

> Your application is now ready. You can start working on it at:

and a path followed by `/`, even though the path itself (returned by `realpath`) is separated by `\`. It is inelegant et potentially confusing.

This PR tries to fix that.

Commits
-------

8643373 Display a directory separator adapted to the OS Symfony is running on
@fabpot fabpot closed this Sep 6, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants